text view: Improve tag pointer tracking
authorMatthias Clasen <mclasen@redhat.com>
Wed, 10 Feb 2016 05:01:54 +0000 (00:01 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 10 Feb 2016 05:01:54 +0000 (00:01 -0500)
commita3a5cf1087278e3e727a74c75f2532bcb14ddca6
treef57bf8d9eec815c01d851962087ba7b2d6faa7a7
parent019dab7c38a0891f494749e9e8fb27c30e8a5f25
text view: Improve tag pointer tracking

A problem that has been observed in polari is that links in tags
are clickable all the way into the margin. This problem is caused
by gtk_text_view_get_iter_at_position ignoring the return value
of pango_layout_xy_to_index. Instead, pass it back as a boolean
return value. This is technically an API break, but we've allowed
ourselves to change return types from void to gboolean before.
gtk/gtktextlayout.c
gtk/gtktextlayout.h
gtk/gtktextview.c
gtk/gtktextview.h